package cz.muni.fi.pv168.reminder.entities;

import java.util.Date;
import java.util.Objects;

/**
 *
 * @author Adic
 */
public class Task {

    private Long id;
    private String name;
    private String description;
    private Boolean done;
    private Date deadline;

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Task other = (Task) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    /**
     *
     * @return
     */
    public Long getId() {
        return this.id;
    }

    /**
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     *
     * @return
     */
    public String getName() {
        return this.name;
    }

    /**
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     *
     * @return
     */
    public String getDescription() {
        return this.description;
    }

    /**
     *
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     *
     * @return
     */
    public Boolean getDone() {
        return this.done;
    }

    /**
     *
     * @param done
     */
    public void setDone(Boolean done) {
        this.done = done;
    }

    /**
     *
     * @return
     */
    public Date getDeadline() {
        return this.deadline;
    }

    /**
     *
     * @param deadline
     */
    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }
}
